home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-01-02 | 5.4 KB | 166 lines | [TEXT/KAHL] |
- /*************************************************************************************************************************************
-
- ORIGINAL TYPE DEFINITIONS FROM FILE "RXVW SHELL W/GLOBALS.P"
- ------------------------------------------------------------
- TYPE
-
- SettingsHandle = ^SettingsPtr; {Contains Configuration setup, last and second}
- SettingsPtr = ^SettingsRec; {to last files opened, and last move info}
- SettingsRec = record
- unused1: Boolean;
- openStartup: Boolean; {Enable/Disable Open on Startup options}
- sortTList, sortRList: Boolean; {Sort Type/Resource list}
- lastOneRefNum, lastTwoRefNum: integer; {Last/Second to last volume reference number}
- lastOneName, lastTwoName: Str255; {Last/Second to last file name}
- lastMoveType: ResType; {TYPE of the last resource copied}
- lastMoveID: integer; {Resource ID of the last resource copied}
- lastMoveSource, lastMoveDest: Str255; {Source and Dest Files of the last resource copied}
- onStartup: integer; {Open on startup option: 1-Last File, 2-Last Two Files, 3-Open File Dialog}
- unused2: integer;
- dClick: integer; {Current selected item of DoubleClick popup menu}
- helpFName: Str255; {Location of master Help file}
- end;
-
-
-
- GlobalsHndl = ^GlobalsPtr; {ResX Global Data - All data can be programmably}
- GlobalsPtr = ^GlobalsRec; {altered. Alter with care! * denotes DO NOT alter}
- GlobalsRec = record
- theDevCtlEnt: DCtlPtr; {*Device Control Entry for DA*}
- rsrcBase: Integer; {*Resource Base*}
- daMenu: MenuHandle; {MaIn DA Menu}
- daFileID: Longint; {*File ID of DA*}
-
- LeftFName, RightFName: Str255; {Path and Name of Left & Right files currently opened}
- LeftVNum, RightVNum: integer; {vRefNum of Left & Right files}
- LWasOpened, RWasOpened: Boolean; {Left/Right file was opened priorly and shouldn't be closed}
- LcurType, RcurType: ResType; {Current type displayed above resource lists}
- LTcurCell, RTcurCell: Cell; {Current selected cell in Left/Right TYPE list}
- LRcurCell, RRcurCell: Cell; {Current selected cell in Left/Right RESOURCE list}
- LfileID, RfileID: integer; {Left/Right File ID}
- prefsID: integer; {File ID of ResX Prefs in the System Folder}
- CompactLeft, CompactRight: Boolean; {Left/Right resource map will be compacted when closed if TRUE}
- favMenu, extMenu, openMenu: MenuHandle; {*Favorite File/Externals/Open File MenuHandles}
- Lopen, Ropen: Boolean; {True if Left/Right file is open and displayed in ResX}
- MFActive: Boolean; {*True if MultiFinder is running*}
- Settings: SettingsHandle; {Handle to Settings in Configuration setup}
-
- LTypeList: ListHandle; {Handle to Left Type list}
- RTypeList: ListHandle; {Handle to Right Type list}
- LResList: ListHandle; {Handle to Left Resource list}
- RResList: ListHandle; {Handle to Right Resource list}
-
-
- Info: ControlHandle; {Get Info Button Control Handle}
- View: ControlHandle; {View Button Control Handle}
- OpenLeft: ControlHandle; {Open Left Button Control Handle}
- OpenRight: ControlHandle; {Open Right Button Control Handle}
- Remove: ControlHandle; {Remove Button Control Handle}
- Copy: ControlHandle; {Copy Button Control Handle}
-
-
- end; {DO NOT alter globals denoted with *. They can}
- {be accessed for reference only.}
-
- *************************************************************************************************************************************/
-
-
-
-
-
-
-
- /********************************************
-
- ResX.h
-
- AUTHOR: Robert A. Daniel
- 1156 W. 103rd St., Suite #150
- Kansas City, MO 64114
-
- COPYRIGHT: Copyright © 1990
- by Robert A. Daniel
- All Rights Reserved
-
- ENVIRONMENT: Symantec THINK C version 4.02
-
- DATE: 12/27/90
- ( modified from original pascal
- interface by Galen Babcock )
-
- ********************************************/
-
-
-
- # ifndef __H__RESX__
- # define __H__RESX__
-
- # ifndef _MacTypes_
- # include <MacTypes.h>
- # endif
-
- # ifndef _DeviceMgr_
- # include <DeviceMgr.h>
- # endif
-
- # ifndef _MenuMgr_
- # include <MenuMgr.h>
- # endif
-
- # ifndef _ListMgr_
- # include <ListMgr.h>
- # endif
-
- typedef struct SettingsRec
- {
- Boolean unused1;
- Boolean openStartup;
- Boolean sortTList, sortRList;
- short lastOneRef, lastTwoRef;
- Str255 lastOneName, lastTowName;
- ResType lastMoveType;
- short lastMoveID;
- Str255 lastMoveSource, lastMoveDest;
- short onStartup;
- short unused2;
- short dClick;
- Str255 helpFName;
- } SettingsRec, *SettingsPtr, **SettingsHandle;
-
- typedef struct GlobalsRec
- {
- DCtlPtr theDevCtlEnt;
- short rsrcBase;
- MenuHandle daMenu;
- long daFileID;
-
- Str255 LeftFName, RightFName;
- short LeftVNum, RightVNum;
- Boolean LWasOpened, RWasOpened;
- ResType LcurType, RcurType;
- Cell LTcurCell, RTcurCell;
- Cell LRcurCell, RRcurCell;
- short LfileID, RfileID;
- short prefsID;
- Boolean CompactLeft, CompactRight;
- MenuHandle favMenu, extMenu, openMenu;
- Boolean LOpen, ROpen;
- Boolean MFActive;
- SettingsHandle Settings;
-
- ListHandle LTypeList;
- ListHandle RTypeList;
- ListHandle LResList;
- ListHandle RResList;
-
- ControlHandle Info;
- ControlHandle View;
- ControlHandle OpenLeft;
- ControlHandle OpenRight;
- ControlHandle Remove;
- ControlHandle Copy;
- } GlobalsRec, *GlobalsPtr, **GlobalsHndl;
-
- # endif
-
-